package com.yswy.backstage.dto.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author 19401
 * @date 2022/6/14 10:27
 **/
@Data
public class SysConfigOptionReqVO {
    @NotNull(message = "id 不能为空", groups = {GroupsReqVO.UPDATE.class})
    private Long id;
    @ApiModelProperty("参数名称")
    @NotEmpty(message = "参数名称 不能为空", groups = {GroupsReqVO.CREATE.class, GroupsReqVO.UPDATE.class})
    private String configName;
    @ApiModelProperty("参数键名")
    @NotEmpty(message = "参数键名 不能为空", groups = {GroupsReqVO.CREATE.class, GroupsReqVO.UPDATE.class})
    private String configKey;
    @ApiModelProperty("参数键值")
    @NotEmpty(message = "参数键值 不能为空", groups = {GroupsReqVO.CREATE.class, GroupsReqVO.UPDATE.class})
    private String configValue;
    @ApiModelProperty("附加字段")
    @NotEmpty(message = "附加字段 不能为空", groups = {GroupsReqVO.CREATE.class, GroupsReqVO.UPDATE.class})
    private String  appendInformation ;
}
